//
//  AJTTMineListCell.swift
//  JourneyThroughTime
//
//  Created by iOS-Czz on 2023/11/629.
//

import UIKit

class AJTTMineListCell: UITableViewCell {

    @IBOutlet var dateLabel: UILabel!
    @IBOutlet var picture: UIImageView!
    @IBOutlet var contentLabel: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    var model: AJTTMineModel? {
        didSet {
            self.dateLabel.text = self.model?.date
            self.contentLabel.text = self.model?.content
            self.picture.image = UIImage.loadImage(self.model!.picture)

        }
    }
}
